/**
 * @className CartAndGoods
 * @author liuxuelin
 * @Date 2021/1/19
 * @version v1.0
 */

package com.hidt.shop.domain;

public class CartAndGoods {
    private int cart_id;//购物车id
    private int good_id;//商品ID
    private String good_name;//商品名称
    private String good_picture;//商品的图片：如果数据库中存图片的地址，数据类型为varchar2(50)。如果数据库中存的是图片，则用BLOB
    private float goodsale_price;//商品的出售价格，库里存的是数字，页面上显示为￥数字。其中￥表示人民币的符号。
    private int goods_discount;//商品折扣100-0,100为原价，0为免费(默认值：100)
    private int count;//对应商品的数量
    private boolean check;

    public int getGoods_discount() {
        return goods_discount;
    }

    public void setGoods_discount(int goods_discount) {
        this.goods_discount = goods_discount;
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public int getCart_id() {
        return cart_id;
    }

    public void setCart_id(int cart_id) {
        this.cart_id = cart_id;
    }

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public String getGood_name() {
        return good_name;
    }

    public void setGood_name(String good_name) {
        this.good_name = good_name;
    }

    public String getGood_picture() {
        return good_picture;
    }

    public void setGood_picture(String good_picture) {
        this.good_picture = good_picture;
    }

    public float getGoodsale_price() {
        return goodsale_price;
    }

    public void setGoodsale_price(float goodsale_price) {
        this.goodsale_price = goodsale_price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public CartAndGoods() {
    }

    public CartAndGoods(int cart_id, int good_id, String good_name, String good_picture, float goodsale_price, int goods_discount, int count, boolean check) {
        this.cart_id = cart_id;
        this.good_id = good_id;
        this.good_name = good_name;
        this.good_picture = good_picture;
        this.goodsale_price = goodsale_price;
        this.goods_discount = goods_discount;
        this.count = count;
        this.check = check;
    }

    @Override
    public String toString() {
        return "CartAndGoods{" +
                "cart_id=" + cart_id +
                ", good_id=" + good_id +
                ", good_name='" + good_name + '\'' +
                ", good_picture='" + good_picture + '\'' +
                ", goodsale_price=" + goodsale_price +
                ", goods_discount=" + goods_discount +
                ", count=" + count +
                ", check=" + check +
                '}';
    }
}
